package com.example.service.impl;

import com.example.service.UserService;

public class UserServiceImpl implements UserService {
    private String defaultUserName = "默认用户";
    
    @Override
    public void addUser() {
        System.out.println("添加用户: " + defaultUserName);
    }
    
    @Override
    public String getUserInfo() {
        return "用户信息: " + defaultUserName;
    }
    
    // Setter方法，用于依赖注入
    public void setDefaultUserName(String defaultUserName) {
        this.defaultUserName = defaultUserName;
    }
}